<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>

	function zhuce(){

		window.location.href="register.jsp";
	}
</script>
</head>

<body>
     ${msg}
     <br>

	<form action="UserInfoServlet"method="post">
			用户名：<input type="text" name="userName" id="userName" /><br>
			密&nbsp;码:<input type="text" name="userPass" id ="userPass" /><br>

			<input type="submit" value = "登陆"/>
			
			
			<input type="button" value = "注册" onclick="zhuce()">
	
	
	</form>


	 <br>

	 <form action="GetStuInfoServlet"method="post">
		 学号：<input type="text" name="stuCode">	 <br>

		 <input type="submit" value = "查询学生基础信息和学生所在班级信息"/>

	 </form>
	 <br>
		${stuInfo.stuCode}	 ----	${stuInfo.stuName}	 ----	${stuInfo.classId}	 ----<br>
			<c:forEach items="${stuInfo.stuCourseInfoList}" var="stuCourseInfo">
				&nbsp;	&nbsp;	&nbsp;${stuCourseInfo.stuId}	 =====	${stuCourseInfo.courseId}=====----<br>
				&nbsp;	&nbsp;	&nbsp;&nbsp;	&nbsp;	&nbsp;${stuCourseInfo.courseInfo.courseId}	**** ${stuCourseInfo.courseInfo.courseName}****${stuCourseInfo.courseInfo.courseText}
				----<br>
			</c:forEach>



	 <form action="GetClassInfoServlet"method="post">
		 班级id：<input type="text" name="classId">	 <br>

		 <input type="submit" value = "查询班级基础信息和班级内所有学生信息"/>

	 </form>
	 <br>
	 ${classInfo.classGrade}	 ----	${classInfo.className}	 ----	${classInfo.classId}	 ----<br>
	 =====
		<c:forEach  items="${classInfo.stuInfoList}" var="stuInfo">
			${stuInfo.stuCode}	 ----	${stuInfo.stuName}	 ----	${stuInfo.classId}
			----<br>
		</c:forEach>


</body>
</html>